<!--<div class="alert alert-success"><span class="glyphicon glyphicon-info-sign"></span>清除排行，排行信息将重置。<a id="btn_reset" class="btn btn-info" href="#">重置排行</a></div>-->

<div class="alert alert-success"><span class="glyphicon glyphicon-info-sign"></span> 数据统计：报名司机 {$driverCount}，投票人数 {$voteCount}，数据截止时间为 {:date('Y-m-d H:i:s')}。</div>

<table class="table table-hover">
	<thead>
		<tr>
            <th>序号</th>
            <th>ID</th>
			<th>服务号</th>
			<th>车牌号</th>
			<th>姓名</th>
			<th>电话</th>
            <th>票数</th>
            <th>去重票数</th>
			<th>排行</th>
			<th>报名时间</th>
			<th>审核状态</th>
			<th>操作</th>
		</tr>
	</thead>
	<tbody>
		<volist name="driverLists" id="vo">
			<tr>
                <td>{$i}</td>
                <td>{$vo.id}</td>
				<td>{$vo.service_no}</td>
				<td>{$vo.plate_number}</td>
				<td>{$vo.name}</td>
				<td>{$vo.tel}</td>
                <td>{$vo.vote}</td>
                <td>{$vo.cleanVote}</td>
				<td>{$vo.rank}</td>
				<td>{$vo.create_time|date="Y-m-d H:i:s",###}</td>
				<td>
					<select name="verify" class="form_control" data-id="{$vo.id}">{$vo['statusOptions']}</td>
				<td>
					<a class="btn btn-xs actionds" href="__CONTROLLER__/voteList?term_id={$vo.term_id}&id={$vo.id}">查看得票明细</a>
					<a class="btn btn-xs actionds" href="__CONTROLLER__/dayVotes?term_id={$vo.term_id}&id={$vo.id}">查看每日得票数</a>
					<a class="btn btn-xs actionds" href="__CONTROLLER__/dayVoteChart?term_id={$vo.term_id}&id={$vo.id}">每日得票分布表</a>
					<a class="btn btn-xs actionds" href="__CONTROLLER__/voteChart?term_id={$vo.term_id}&id={$vo.id}">最近5日得票分布表</a>
					<a class="btn btn-xs actionds" href="__CONTROLLER__/getIpRepeat?term_id={$vo.term_id}&id={$vo.id}">IP投票次数统计</a>
					<!--<a class="btn btn-danger btn-xs actionds" data-action-id="{$vo.id}" data-action-txt="移除中……" data-action-url="__CONTROLLER__/remove?term_id={$termId}">移除</a>-->
				</td>
			</tr>
		</volist>
	</tbody>
</table>
<div class="pagination">{$pagination}</div>
<script type="text/javascript">
	var termId = '{$termId}';
	$(function() {
		$("select[name='verify']").change(function() {
			if ($(this).val() == 0 && confirm('禁用将清除该用户的投票数据数据且无法恢复,是否继续?')) {
				$.post("__CONTROLLER__/setVerifyStatus", {
					"id": $(this).attr('data-id'),
					"status": $(this).val(),
					"term_id": termId
				}, function(data) {
					$().alertMsg({
						type: "success",
						msg: data.msg
					});
				});
			} else {
				$(this).val(1);
			}
		});

		/*$("#btn_reset").click(function() {
			if ( confirm('移除用户将清除该用户的投票数据数据且无法恢复,是否继续?') ) {
				$.post('__CONTROLLER__/clearRank', {}, function(data) {
					alert(data['msg']);
				});
			}
			return false;
		});*/
	});
</script>

